//Time class by mgm A.2
#ifndef TIME_H_ 
#define TIME_H_

// simple time 
class Time 
{
public:
        //to throw as exceptions
        class Invalid{};

        // check for valid date and initialize (constructor with parameters)
        Time(int h, int m);

        //default constructor
        Time();

        //non-modifying operators (getter)
        int hour() const {return h;}
        int minute() const {return m;}  

        //define default time
        Time& default_time(); 

        //check validity of time
        bool is_time(int h, int m);
private:
        int h;          // hour
        int m;          //minute
};
#endif //TIME_H_
